#include "StdAfx.h"
#include "smartCOM.h"
#include "errorInfo.h"


namespace DSP
{
	smartCOM::smartCOM(void)
	{
		HRESULT hr = CoInitialize(NULL);
		if(FAILED(hr))
			throw errorInfo("Error: Can not initialize COM library.", hr);
	}


	smartCOM::~smartCOM(void)
	{
		CoUninitialize();
	}
}